package com.chuan.it_market.service.impl;

import com.chuan.it_market.dao.SellerDao;
import com.chuan.it_market.pojo.entity.Seller;
import com.chuan.it_market.service.SellerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SellerServiceImpl implements SellerService {

    @Resource
    SellerDao sellerDao;
    @Override
    public Seller selectSellerByPrimaryKey(Integer sno) {
        return sellerDao.selectByPrimaryKey(sno);
    }

    @Override
    public Seller selectSellerByphone(String phone) {
        return sellerDao.selectSellerByPhone(phone);


    }

    @Override
    public int update(Seller seller) {
        return sellerDao.updateByPrimaryKeySelective(seller);
    }

}
